package com.cq.androidtools.jetpack.startup

/**
 * 作者: CQ
 * 日期: 2021-05-31
 * 说明:
 */
//class Application1 : MyApplication() {
//    val data1 = System.currentTimeMillis()
//    override fun onCreate() {
//        super.onCreate()
////        Log.e("data1", data1.toString())
////        Sdk1.init(this)
////        Sdk2.init(this)
////        Sdk3.init(this)
//////        init1()
////        val data2 = System.currentTimeMillis()
////        Log.e("data2", data2.toString())
////        Log.e("data", (data2 - data1).toString())
//
//
//        CoroutineScope(Dispatchers.Main).launch {
//            val data1 = System.currentTimeMillis()
//            Log.e("data1", data1.toString())
//            init()
//            val data2 = System.currentTimeMillis()
//            Log.e("data1", data2.toString())
//            Log.e("data", (data2 - data1).toString())
//            Sdk1.getInstance().printApplicationName()
//        }
//    }
//
//    suspend fun init() = withContext(Dispatchers.IO) {
//        Log.e("data3333",System.currentTimeMillis().toString())
//        AppInitializer.getInstance(applicationContext)
//            .initializeComponent(Sdk3Initializer::class.java)
//    }
//
//    fun init1() {
//        AppInitializer.getInstance(applicationContext)
//            .initializeComponent(Sdk3Initializer::class.java)
//    }
//}